/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package uk.ac.aber.compsci.se3920.groupA.Tests.MockTypes;

import uk.ac.aber.compsci.se3920.groupA.Tests.*;
import java.util.ArrayList;

/**
 *
 * @author rob
 */
public class Room {
    private String id;
    private String dept;
    private int capacity;
    private ArrayList<Equipment> eqList;
    
    public Room(String id, String dept, int capacity, ArrayList<Equipment> eqList){
        this.id = id;
        this.dept = dept;
        this.capacity = capacity;
        this.eqList = eqList;
    }
    
    public Room(String id, String dept, int capacity){
        this.id = id;
        this.dept = dept;
        this.capacity = capacity;
        this.eqList = new ArrayList<Equipment>();
    }
    
    public Room(){
        eqList = new ArrayList<Equipment>();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    public int getCapacity() {
        return capacity;
    }

    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

    public ArrayList<Equipment> getEqList() {
        return eqList;
    }
    
    public void addEquipment(Equipment e){
        this.eqList.add(e);
    }
    
    public boolean hasEquipment(String equipmentType){
        for(Equipment e : this.eqList){
            if(e.getType().equals(equipmentType)) return true;
        }
        return false;
    }

}
